3.334 \(\int \frac {(a+i a \tan (c+d x))^m}{\sqrt {\tan (c+d x)}} \, dx\)

Optimal. Leaf size=79 \[ \frac {2 \sqrt {\tan (c+d x)} (1+i \tan (c+d x))^{-m} (a+i a \tan (c+d x))^m F_1\left (\frac {1}{2};1-m,1;\frac {3}{2};-i \tan (c+d x),i \tan (c+d x)\right )}{d} \]

[Out]

2*AppellF1(1/2,1-m,1,3/2,-I*tan(d*x+c),I*tan(d*x+c))*tan(d*x+c)^(1/2)*(a+I*a*tan(d*x+c))^m/d/((1+I*tan(d*x+c))
^m)

________________________________________________________________________________________

Rubi [A]  time = 0.10, antiderivative size = 79, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3564, 130, 430, 429} \[ \frac {2 \sqrt {\tan (c+d x)} (1+i \tan (c+d x))^{-m} (a+i a \tan (c+d x))^m F_1\left (\frac {1}{2};1-m,1;\frac {3}{2};-i \tan (c+d x),i \tan (c+d x)\right )}{d} \]

Antiderivative was successfully verified.

[In]

Int[(a + I*a*Tan[c + d*x])^m/Sqrt[Tan[c + d*x]],x]

[Out]

(2*AppellF1[1/2, 1 - m, 1, 3/2, (-I)*Tan[c + d*x], I*Tan[c + d*x]]*Sqrt[Tan[c + d*x]]*(a + I*a*Tan[c + d*x])^m
)/(d*(1 + I*Tan[c + d*x])^m)

Rule 130

Int[((e_.)*(x_))^(p_)*((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> With[{k = Denominator[p]
}, Dist[k/e, Subst[Int[x^(k*(p + 1) - 1)*(a + (b*x^k)/e)^m*(c + (d*x^k)/e)^n, x], x, (e*x)^(1/k)], x]] /; Free
Q[{a, b, c, d, e, m, n}, x] && NeQ[b*c - a*d, 0] && FractionQ[p] && IntegerQ[m]

Rule 429

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[a^p*c^q*x*AppellF1[1/n, -p,
 -q, 1 + 1/n, -((b*x^n)/a), -((d*x^n)/c)], x] /; FreeQ[{a, b, c, d, n, p, q}, x] && NeQ[b*c - a*d, 0] && NeQ[n
, -1] && (IntegerQ[p] || GtQ[a, 0]) && (IntegerQ[q] || GtQ[c, 0])

Rule 430

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Dist[(a^IntPart[p]*(a + b*x^n)^F
racPart[p])/(1 + (b*x^n)/a)^FracPart[p], Int[(1 + (b*x^n)/a)^p*(c + d*x^n)^q, x], x] /; FreeQ[{a, b, c, d, n,
p, q}, x] && NeQ[b*c - a*d, 0] && NeQ[n, -1] &&  !(IntegerQ[p] || GtQ[a, 0])

Rule 3564

Int[((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Dis
t[(a*b)/f, Subst[Int[((a + x)^(m - 1)*(c + (d*x)/b)^n)/(b^2 + a*x), x], x, b*Tan[e + f*x]], x] /; FreeQ[{a, b,
 c, d, e, f, m, n}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 + b^2, 0] && NeQ[c^2 + d^2, 0]

Rubi steps

\begin {align*} \int \frac {(a+i a \tan (c+d x))^m}{\sqrt {\tan (c+d x)}} \, dx &=\frac {\left (i a^2\right ) \operatorname {Subst}\left (\int \frac {(a+x)^{-1+m}}{\sqrt {-\frac {i x}{a}} \left (-a^2+a x\right )} \, dx,x,i a \tan (c+d x)\right )}{d}\\ &=-\frac {\left (2 a^3\right ) \operatorname {Subst}\left (\int \frac {\left (a+i a x^2\right )^{-1+m}}{-a^2+i a^2 x^2} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}\\ &=-\frac {\left (2 a^2 (1+i \tan (c+d x))^{-m} (a+i a \tan (c+d x))^m\right ) \operatorname {Subst}\left (\int \frac {\left (1+i x^2\right )^{-1+m}}{-a^2+i a^2 x^2} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}\\ &=\frac {2 F_1\left (\frac {1}{2};1-m,1;\frac {3}{2};-i \tan (c+d x),i \tan (c+d x)\right ) (1+i \tan (c+d x))^{-m} \sqrt {\tan (c+d x)} (a+i a \tan (c+d x))^m}{d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [F]  time = 5.45, size = 0, normalized size = 0.00 \[ \int \frac {(a+i a \tan (c+d x))^m}{\sqrt {\tan (c+d x)}} \, dx \]

Verification is Not applicable to the result.

[In]

Integrate[(a + I*a*Tan[c + d*x])^m/Sqrt[Tan[c + d*x]],x]

[Out]

Integrate[(a + I*a*Tan[c + d*x])^m/Sqrt[Tan[c + d*x]], x]

________________________________________________________________________________________

fricas [F]  time = 0.48, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\left (\frac {2 \, a e^{\left (2 i \, d x + 2 i \, c\right )}}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}\right )^{m} \sqrt {\frac {-i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} {\left (i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i\right )}}{e^{\left (2 i \, d x + 2 i \, c\right )} - 1}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+I*a*tan(d*x+c))^m/tan(d*x+c)^(1/2),x, algorithm="fricas")

[Out]

integral((2*a*e^(2*I*d*x + 2*I*c)/(e^(2*I*d*x + 2*I*c) + 1))^m*sqrt((-I*e^(2*I*d*x + 2*I*c) + I)/(e^(2*I*d*x +
 2*I*c) + 1))*(I*e^(2*I*d*x + 2*I*c) + I)/(e^(2*I*d*x + 2*I*c) - 1), x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{m}}{\sqrt {\tan \left (d x + c\right )}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+I*a*tan(d*x+c))^m/tan(d*x+c)^(1/2),x, algorithm="giac")

[Out]

integrate((I*a*tan(d*x + c) + a)^m/sqrt(tan(d*x + c)), x)

________________________________________________________________________________________

maple [F]  time = 1.10, size = 0, normalized size = 0.00 \[ \int \frac {\left (a +i a \tan \left (d x +c \right )\right )^{m}}{\sqrt {\tan \left (d x +c \right )}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+I*a*tan(d*x+c))^m/tan(d*x+c)^(1/2),x)

[Out]

int((a+I*a*tan(d*x+c))^m/tan(d*x+c)^(1/2),x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{m}}{\sqrt {\tan \left (d x + c\right )}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+I*a*tan(d*x+c))^m/tan(d*x+c)^(1/2),x, algorithm="maxima")

[Out]

integrate((I*a*tan(d*x + c) + a)^m/sqrt(tan(d*x + c)), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^m}{\sqrt {\mathrm {tan}\left (c+d\,x\right )}} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a*tan(c + d*x)*1i)^m/tan(c + d*x)^(1/2),x)

[Out]

int((a + a*tan(c + d*x)*1i)^m/tan(c + d*x)^(1/2), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{m}}{\sqrt {\tan {\left (c + d x \right )}}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+I*a*tan(d*x+c))**m/tan(d*x+c)**(1/2),x)

[Out]

Integral((I*a*(tan(c + d*x) - I))**m/sqrt(tan(c + d*x)), x)

________________________________________________________________________________________